/*
 * Change Logs:
 * Date           Author       Notes
 * 2022-01-28     tyustli          first implementation
 */

#include "tail_link.h"

Status equal(ElemType c1, ElemType c2)
{ // 判断是否相等的函数
    if (c1 == c2)
        return TRUE;
    else
        return FALSE;
}

int comp(ElemType a, ElemType b)
{ // 根据a<、=或>b，分别返回-1、0或1
    if (a == b)
        return 0;
    else
        return (a - b) / abs(a - b);
}

void print(ElemType c)
{
    printf("%d ", c);
}

void print2(ElemType c)
{
    printf("%c ", c);
}

void print1(ElemType *c)
{
    printf("%d ", *c);
}
